package com.study.talk.entity;




import java.io.Serializable;
import java.time.LocalDateTime;



/**
 * <p>
 * 
 * </p>
 *
 * @author thor
 * @since 2023-12-18
 */



//(value = "GroupUserInfo对象", description = "")
public class GroupUserInfo implements Serializable {

    

      //("id")
    
    private Integer id;

      //("群聊id")
    private Integer groupId;

      //("用户id")
    private Integer userId;

      //("用户昵称")
    private String userName;

      //("用户头像地址")
    private String userAvatar;

      //("用户简介")
    private String userIntroduce;

      //("创建时间")
    private LocalDateTime createTime;

    public GroupUserInfo(UserInfo userInfo, Integer groupId) {
        this.groupId = groupId;
        this.userId = userInfo.getId();
        this.userName = userInfo.getNickName();
        this.userAvatar = userInfo.getAvatar();
        this.userIntroduce = userInfo.getIntroduce();
    }

    public GroupUserInfo(Integer id, Integer groupId, Integer userId, String userName, String userAvatar, String userIntroduce, LocalDateTime createTime) {
        this.id = id;
        this.groupId = groupId;
        this.userId = userId;
        this.userName = userName;
        this.userAvatar = userAvatar;
        this.userIntroduce = userIntroduce;
        this.createTime = createTime;
    }

    public GroupUserInfo() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public String getUserIntroduce() {
        return userIntroduce;
    }

    public void setUserIntroduce(String userIntroduce) {
        this.userIntroduce = userIntroduce;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}
